package com.example.batchprocessing;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class BatchprocessingApplication {

    public static void main(String[] args) {
//        SpringApplication.run(BatchprocessingApplication.class, args);
        /**
         * Note that SpringApplication.exit() and System.exit() ensure that the JVM exits upon job completion.
         */
        System.exit(SpringApplication.exit(SpringApplication.run(BatchprocessingApplication.class, args)));
    }

}
